<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
  <table width="40%" cellpadding="0px" cellspacing="0px" border="1px">
    <tr>
      <th>uid</th>
      <th>username</th>
      <th>password</th>
    </tr>
    <tr th:each="user:${list}">
      <td>[[${user.uid}]]</td>
      <td th:text="${user.username}"></td>
      <td th:text="${user.password}"></td>
    </tr>
  </table>
  <hr/>
  <table width="40%" cellpadding="0px" cellspacing="0px" border="1px">
    <tr>
      <th>status</th>
      <th>uid</th>
      <th>username</th>
      <th>password</th>
    </tr>
    <tr th:each="user,status:${list}">
      <td th:text="|
        下标是:${status.index},
        元素数量:${status.count},
        奇偶:${status.even?'奇数':'偶数'},
        是第一个:${status.first},
        是最后一个:${status.odd},
        总数量:${status.size},
        |"></td>
      <td>[[${user.uid}]]</td>
      <td th:text="${user.username}"></td>
      <td th:text="${user.password}"></td>
    </tr>
  </table>
  <hr/>
  <table width="40%" cellpadding="0px" cellspacing="0px" border="1px">
    <tr>
      <th>index</th>
      <th>key</th>
      <th>value</th>
    </tr>
    <tr th:each="m,status:${map}">
      <td>[[${status.index}]]</td>
      <td th:text="${m.key}"></td>
      <div th:switch="${m.value}">
        <td th:case="'male'">这是个汉子</td>
        <td th:case="'female'">这是个妹纸</td>
        <td th:case="*" th:text="${m.value}"></td>
      </div>
    </tr>
  </table>
</body>
</html>